<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="layout" content="mainUser">
<title>Order Lunch</title>
</head>
<body>
	<div id="container">
		<div class="message notice">
			<h1>Your online Order Lunch service!</h1>
		</div>
		<g:if test="${!session?.user}">
			<div class="colset ">
				<div class="left">
					<h1>Need an account?</h1>
					<p class="legend">
						<g:link controller="orderUser" action="register">Signup now</g:link>
						to manage your own Order Lunch!
					</p>
					<g:link controller="orderUser" action="register" class="btn">Signup now</g:link>
				</div>

				<div class="right">
					<h1>Already a member?</h1>
					<p class="legend">Log in to your account</p>
					<g:form name="loginForm"
						url="[controller:'orderUser',action:'login']" class="form">
						<div class="input">
							<g:textField required="true" placeholder="Username" name="name"
								value="${fieldValue(bean:loginCmd, field:'name')}" />
							<g:hasErrors bean="${loginCmd}" field="name">
								<p class="error">
									<g:fieldError bean="${loginCmd}" field="name" />
								</p>
							</g:hasErrors>
						</div>
						<div class="input">
							<g:passwordField required="true" placeholder="Password"
								name="password" />
							<g:hasErrors bean="${loginCmd}" field="password">
								<p class="error">
									<g:fieldError bean="${loginCmd}" field="password" />
								</p>
							</g:hasErrors>
						</div>
						<div class="submit">
							<input type="submit" value="Login" class="btn" />
						</div>
					</g:form>
				</div>
			</div>
		</g:if>
	</div>

</body>
</html>
